<?php
// Module Definition
$module['name'] = 'Zimbra';
$module['description'] = 'Manage Zimbra mail server.';
$module['excludes'] = array('exim4', 'virtualqmail', 'postfix', 'sendmail');

switch($action) {
	case 'register':
		break;
	case 'unregister':
		break;
	case 'enable':
		break;
	case 'disable':
		break;
	case 'hook':
		register_hook('server:domain:create', 'zimbra_domain_create');
		register_hook('server:domain:remove', 'zimbra_domain_remove');
		register_hook('server:domain:update', 'zimbra_domain_update');
		register_hook('server:user:create', 'zimbra_user_create');
		register_hook('server:user:update', 'zimbra_user_update');
		register_hook('server:user:remove', 'zimbra_user_remove');
		register_hook('server:user:suspend', 'zimbra_user_suspend');
		register_hook('server:user:unsuspend', 'zimbra_user_unsuspend');
		
		register_hook('server:service:monitor', 'zimbra_monitor');
		register_hook('web:lang', 'zimbra_add_lang');
		register_hook('web:cfg:default', 'zimbra_add_cfg');
		register_hook('server:cfg:default', 'zimbra_add_cfg');
		
		break;
}
?>